package com.example.service_cms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.service_cms.entity.Banner;
import com.example.service_cms.mapper.BannerMapper;
import com.example.service_cms.service.BannerService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:tjf
 * @Description:
 */
@Service
public class BannerServiceImpl extends ServiceImpl<BannerMapper, Banner> implements BannerService{
    @Resource
    private BannerMapper bannerMapper;

    /**
     * 查询所有的轮播图
     * @return
     */
    @Override
    public List<Banner> queryAllBanner() {
        List<Banner> bannerList = bannerMapper.selectList(null);
        return bannerList;
    }
}
